package com.iot.ammeter.entity.web.equipment;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备管理
 * </p>
 *
 * @author basil
 * @since 2021-09-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_equipment_management")
@ApiModel(value="EquipmentManagement对象", description="设备管理")
public class EquipmentManagement implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备id，识别码，标识符")
    @TableId
    private String equipmentIdentifier;

    @ApiModelProperty(value = "0表示离线，1表示在线，2表示报警")
    private Integer equipmentStatus;

    @ApiModelProperty(value = "0表示禁用，1表示未禁用")
    private Integer isEnable;

    @ApiModelProperty(value = "电量数")
    private BigDecimal degree;

    @ApiModelProperty(value = "0表示已关机，1表示开机")
    private Integer shutDown;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
